package com.ljxt.dt.dao.basicinformationdao;

import com.ljxt.dt.domain.GoodsInfo;
import com.ljxt.dt.domain.SupplierInfo;
import com.ljxt.dt.domain.SupplierType;
import com.ljxt.dt.vo.basicInformation.GoodsInfoVO;
import com.ljxt.dt.vo.basicInformation.SupplierListVO;

import java.util.List;

/**
 * @author 糖糖
 * @version 1.0.0
 * @date 2020/5/12 16:39
 * @copyright 老九学堂
 */
public interface SupplierDao {

    List<SupplierInfo> findAllSuppliers();

    List<SupplierListVO> findAll(Integer currentIndex, Integer pageSize, String supplierName, Integer typeId, Integer id);

    List<SupplierType> selectSupplierType();

    int selectCount(int currentIndex, int pageSize, String supplierName, int typeId, int id);

    List<GoodsInfoVO> findAllGoods(int id, String goodsName, int currentIndex, int pageSize);

    int findAllGoodsCount(int id, String goodsName, int currentIndex, int pageSize);

    boolean addNewSupplier(int id, String typeName, String address, String contactName, String phone, String[] goodsIdArray);

    List<GoodsInfoVO> findSupplierGoods(int id);

    boolean updateSupplier(int id,int typeId, String supplierName, String address, String contactName, String phone, String[] goodsIdArray);


}
